<%@ page import="com.humanminoritygame.model.User"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>

<html>
<head>
	<title>Human Minority Game</title>
	<link href="../../css/zenpool.css" rel="stylesheet">
	<link href="../../css/cupertino/jquery-ui-1.8.4.custom.css" rel="stylesheet">
	<script src="../../js/jquery-1.4.2.min.js" type="text/javascript"></script>
	<script src="../../js/jquery-ui-1.8.4.custom.min.js" type="text/javascript"></script>

	<%/* jquery button */%>
	<script type="text/javascript">
	$(function() {
		$("button, input:submit, a, input:button", ".botones").button();
	});
	</script>
</head>

<body>
	<div id="container">
		<div id="intro">
		
			<div id="pageHeader">
				<h1>This is the HUMAN Minority Game</h1>
				<h2>Play now!</h2>
			</div>
			
			<div id="slogan">
				<p> <spring:message code="slogan" /> </p>
			</div>
			
				<% User user=null;
					if(request.getSession()!=null && request.getSession().getAttribute("user")!=null){
						user = (User)request.getSession().getAttribute("user");
				%>
						<div id="user">
								<p>Hello <c:out value="${user.name}"/> [ <a href="../index/logout">Logout</a> ]</p>
						</div>
				<%}%>
			
			<div id="menu" class="botones">
				<a class="botones" href="../index/index">Home</a><br/>
				<% if(user!=null){%> <a class="botones" href="../subscription/list">Play!</a><br/>
									<a class="botones" href="../subscription/listOld">Old Games</a><br/>
				<% } %>
				<% if(user!=null && user.isAdmin()){ %><a class="botones" href="../admin/listAllUsers">Users</a><br/> <% } %>
				<% if(user!=null && user.isAdminOrResearcher()){ %><a class="botones" href="../admin/listAllClosedRooms">All Games</a><br/> <%} %>
				<a class="botones" href="../index/help">Help</a><br/>
			</div>
			
			<div id="hmg">
			
			
			<div class="ui-widget">
				<div class="ui-state-error ui-corner-all" style="padding: 0 .7em;"> 
					<p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span> 
					<strong>Error:</strong> Oops! Something happened, please try again later.</p>
				</div>
			</div>
			
			
			</div>
		</div>
<br/>
<br/>
		<div id="supportingText">
			<div id="espacio"></div>
			<div id="footer">
				<p>Copyright ITBA 2010</p>
			</div>
		</div>

		
	</div>
</body>
</html>